package com.sky.service.User;

import com.sky.entity.OrderDetail;
import com.sky.mapper.OrderDetailMapper;
import com.sky.service.OrderDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author 褚金龙
 * @Date 2024/10/11 22:26
 */
@Service
public class OrderDetailServiceImpl implements OrderDetailService {
    /**
     * 根据订单id查询订单详情
     * @param id
     * @return
     */
    @Autowired
    private OrderDetailMapper orderDetailMapper;
      @Override
    public List<OrderDetail> select(Integer id) {
          List<OrderDetail> list=   orderDetailMapper.select(id);
        return list;
    }

    /**
     * 批量查询订单详情
     * @param ids
     * @return
     */
    @Override
    public List<OrderDetail> selectAll(List<Long> ids) {
        List<OrderDetail>  list= orderDetailMapper.selectAll(ids);
        return list;
    }
}
